<template>
	<view class="number-row" :style="{'border-bottom':bottomCom}">
		<view class="row-name">{{name}}</view>
		<view class="row-value">{{value}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			name: {
				type: String,
				default: ''
			},
			value: {
				type: String,
				default: ''
			},
			isLast: {
				type: Boolean,
				default: false
			}
		},
		computed: {
			bottomCom() {
				if (this.isLast) {
					return "solid 1rpx #666666"
				} else {
					return ""
				}
			}
		}
	}
</script>

<style>
	.number-row {
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #FFFFFF;
		border: solid 1rpx #666666;
		border-bottom: 0;
	}

	.row-name {
		display: flex;
		flex-direction: column;
		margin-left: 50rpx;
		justify-content: center;
		height: 100rpx;
		width: 200rpx;
	}

	.row-value {
		width: 400rpx;
		height: 100rpx;
		display: flex;
		align-items: center
	}
</style>
